package com.fyb.basic.demo;

import java.lang.reflect.Field;

/**
 * @Author：MR.FANG
 * @name：ApiMonitor
 * @Date：2025/7/2 下午3:12
 */
public class ApiMonitor {

    public static String BindXBTimeHistogram = "1";

    public static void main(String[] args) {
        try {
            Class<?> aClass = Class.forName(ApiMonitor.class.getName());
            Field[] fields = aClass.getFields();
            for (Field field : fields) {
                String name = field.getName();
                Object o = field.get(name);
                if ("BindXBTimeHistogram".equals(name) && o instanceof String) {
                    System.out.println(name);
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
